Before designing a website, understand its purpose, users, and content structure.
What is a Website?
A website is a collection of related web pages accessible through the Internet. When designing a website, key factors must be considered: the purpose, the user, and how to maintain it.
Types of Web Applications
There are eight main categories of web applications:
Information Communication
Websites designed to share educational, health, and general information with users.
e-Commerce
Websites that sell goods and services through the Internet.
Entertainment
Websites providing songs, films, games, broadcasts, and telecasts for download or streaming.
Advertising
Websites that provide promotional information about goods and services of various organizations.
News
Websites that publish current news using multimedia elements.
Social Media
Websites providing facilities to develop social networking among groups based on background, occupation, or interests.
Search Engine
Websites that help users find information from the World Wide Web using keywords or phrases.
Personal
Websites used by individuals — such as writers and politicians — to disseminate personal information.
Web User Groups
People who access and use a website are called its users. Understanding users is critical when designing a website. Five key factors help understand users:
Language & Culture
Users may speak different languages (e.g., Sinhala, Tamil, English). Cultural context affects design choices.
Age
Children, teenagers, and adults have different needs, reading levels, and interaction preferences.
Educational Level
Determines the complexity of language, technical terms, and content depth suitable for the audience.
Gender
Preferences for color schemes, topics, and presentation styles may vary by gender.
Preferences
Users have individual tastes for design, navigation style, font size, and multimedia types.
Web Content
All audio-visual information and services a user encounters on a website is called web content. Content must be chosen based on the user group analysis.
Texts
Short, clear information presented in readable form.
Images
Photos, clip arts, drawings, scanned images.
Sound
Songs, voice clips, audio recordings.
Video
Video clips and multimedia presentations.
Animations
Moving graphics to illustrate concepts.
Copyright Info
Ownership details and last-updated dates.
Hyperlinks
Links to other documents, images, social networks.
Search
Facilities to search within the website.
Content Management
Systematic organization of web content is called content management. A well-organized website has these features:
- Easy to use — users find navigation intuitive
- Information is quick to find
- Visually attractive to users
- Easy to update by the maintainer
- Has room to add new features later
Methods of Content Organization
1. Site Map
A visual diagram showing all web pages and the hyperlinks (connections) between them. Boxes = web pages; Lines = hyperlinks.
2. Home Page Summary
Use a main menu and sub-menus on the home page to give a summary of all content. Hyperlinks direct users to relevant pages.
3. Brief Information
Limit content on a single page. Overwhelming a page with text causes users to lose interest and miss important content.
4. Lists & Indentation
Use numbered lists, bulleted lists, and indentation to break up long paragraphs and prevent user fatigue.
5. Easy Navigation
Provide hyperlinks across all pages so users can jump between sections without getting lost.
6. Regular Updates
Include copyright notice and the last-updated date on each page. Update content regularly to maintain accuracy.
School Website Site Map Example
Boxes = web pages · Lines = hyperlinks · Purple nodes = sub-pages
Structure & Layout
Structure and layout involve features like backgrounds, tables, frames, font types, font sizes, and font shapes. Key principles:
Identity Consistency
Keep backgrounds, font types, sizes, and colors uniform across all pages of a website.
Highlight Important Info
Use larger fonts, bold text, or different colors to draw attention to key content.
Responsive Design
The website should automatically adjust its size to fit different screen sizes — desktops, tablets, and mobiles.
Selecting Media Resources
When selecting media (images, sounds, videos, animations), file size is critical — larger files take longer to load and may cause users to leave the site.
🖼️ Graphics
- Crop/Trim to remove unnecessary pixels
- Use graphic compression (JPG, PNG, WebP)
- Use .gif for simple animations
🎥 Video Files
- Reduce frame size
- Reduce resolution (e.g., 720p instead of 4K)
- Adjust frame rate
- Remove unnecessary frames and sound
🔊 Audio Files
- Reduce the bit rate
- Reduce the sample rate
- Reduce number of channels (stereo → mono)
- Remove unnecessary silence/noise
HyperText Markup Language — the language of the World Wide Web.
Basic HTML Document Structure
🧠 HEAD Section
Contains metadata and the <title> tag. The title text appears in the browser's tab bar — not on the visible page itself.
👁️ BODY Section
Contains all visible content: text, images, tables, hyperlinks, lists, etc. Everything the user sees on the page goes here.
Features of HTML
i) Tags give display instructions
HTML tags tell the browser how to display content. Commands in an HTML document are called HTML codes.
ii) Angular brackets < >
Every HTML tag is enclosed in angle brackets. Example: <p> marks the beginning of a paragraph.
iii) Opening and closing tag pairs
Most tags come in pairs. The closing tag adds a forward slash: <p> opens a paragraph, </p> closes it.
iv) Case insensitive
HTML tags are NOT case sensitive. <TITLE>, <Title>, and <title> all mean the same thing.
v) No error messages
If a tag is written incorrectly, the browser silently ignores it — there are no error messages like in programming languages.
vi) Element · Attribute · Value
An HTML tag has three components:
The <body> Tag Attributes
The <body> tag controls the appearance of the entire page. It accepts these important attributes:
| Attribute | Description | Example |
|---|---|---|
bgcolor | Sets the background color of the entire page (color name or hex). | bgcolor="yellow" |
text | Sets the default text color for all text on the page. | text="navy" |
link | Sets the color of unvisited hyperlinks on the page. | link="blue" |
alink | Sets the color of an active (currently being clicked) hyperlink. | alink="red" |
vlink | Sets the color of visited (already clicked) hyperlinks. | vlink="purple" |
background | Sets an image as the page background (tiled automatically). | background="bg.jpg" |
Creating Your First HTML Page — Step by Step
Open Notepad
Start → All Programs → Accessories → Notepad. Notepad is a simple text editor built into Windows.
Write the HTML code
Type the HTML structure: <html>, <head>, <title>, <body> and your content.
Save as .html
File → Save As. Type the filename as myfirst.html, change "Save as type" to All Files (*.*), and save.
Open in a browser
Double-click the saved .html file. It will open in your default web browser and display your first web page!
Use an HTML Editor
Instead of Notepad, use dedicated HTML editors for easier coding: CoffeeCup (www.coffeecup.com), Seamonkey Composer, or Eclipse.
HTML Colour System
Colors in HTML can be specified in two ways:
Method 1 — Color Names (16 Standard)
Method 2 — RGB Hexadecimal Codes
Format: #RRGGBB — two hex digits each for Red, Green, Blue (0-F)
Write HTML code on the left and see the output instantly on the right. Click a preset to load an example!
🧪 Challenges — Try These in the Editor!
Beyond basic HTML coding — tools that make web design faster and more professional.
Web Authoring Tools
These tools automatically generate the HTML code in a separate interface while you design the page visually. If you know HTML, you can use both the visual interface AND the HTML code directly.
Free / Open Source
Download free from the Internet:
- • Kompozer
- • CKEditor
- • BlueGriffon
- • CoffeeCup (free version)
- • Seamonkey Composer
Paid / Commercial
Must be purchased:
- • Adobe Dreamweaver
- • Microsoft FrontPage
- • Visual Studio
Kompozer Features
- • Insert tables
- • Insert pictures
- • Attach files / hyperlinks
- • Format letters & text
- • See HTML code (source view)
- • Preview web page
- • Publish (upload via FTP)
Static vs Dynamic Websites
| Feature | 📄 Static Website | ⚙️ Dynamic Website |
|---|---|---|
| Content changes | Rarely — stays fixed over time | Often — updated automatically |
| Design language | HTML, CSS | PHP, ASP.net, JSP + database |
| User-server connection | Not directly connected to server | Directly connected to web server |
| Who can update | Only the designer (via FTP) | Anyone with access/login |
| Security | More secure | More security risks |
| Complexity | Simpler to build | Requires advanced knowledge |
| Best for | School websites, personal pages, portfolios | Banking, exams, social media, e-commerce |
| Examples | A school's static information page | Exam results portal, Facebook, Amazon |
📄 Static — How it works
⚙️ Dynamic — How it works
Content Management Systems (CMS)
CMS is software used for dynamic website designing, content management, and publishing. It is the most popular web design tool today.
Advantages of CMS
- • Easy and fast to use
- • No prior programming knowledge needed
- • Ready-made templates available
- • Content can be re-published easily
Limitations of CMS
- • Design creativity limited to templates
- • All CMS sites may look similar
- • Customization needs HTML/PHP/CSS knowledge
- • More security risks than static sites
Popular Open Source CMS Software
Joomla
Powerful and flexible CMS. Requires Apache, PHP, and MySQL (or use WAMP/XAMPP package).
www.joomla.org
WordPress
The world's most popular CMS. Easy to use with thousands of themes and plugins available.
www.wordpress.org
Drupal
Highly customizable and secure CMS. Best suited for large, complex websites.
www.drupal.org
Roles in Web Design Teams
Building and maintaining a professional website is teamwork. Each member has specific responsibilities:
Author
Designs the interfaces of the website — the visual layout and user experience.
Editor
Writes the code, checks for errors, and fixes problems in HTML/CSS/scripts.
Publisher
Fulfills all tasks related to publishing (uploading) the website to the web host.
Administrator
Maintains the web server and database — keeps the site running and secure.
User
Uses the website — their feedback and experience drive all design improvements.
Requirements, domain names, hosting, and maintaining your site after launch.
1. Web Design Software
To build the website: Notepad, HTML editors, web authoring tools, or CMS.
2. Web Host
A computer server where your website files are stored and made accessible.
3. Domain Name
Your website's unique address on the Internet (e.g., www.yoursite.lk).
4. File Transfer Protocol
Software to upload your website files to the web host server.
5. Internet Connection
Required for transferring, updating, and making the website accessible.
Web Host
A web host is a computer connected to the Internet 24/7 that stores your website files and serves them to visitors.
Dedicated Host
For large-scale organizations. They own and operate their own dedicated server exclusively for their website.
Shared Host
For small organizations. They rent space on a server shared with other websites. Charges: basic fee + annual charge based on storage capacity.
Free Hosting
Some institutes offer free hosting — but they display their advertisements on your website as a trade-off.
Important Note
Consider storage capacity, uptime reliability, support quality, speed, and cost when choosing a web host provider.
Domain Name
A domain name is the unique address of a website on the Internet. ICANN (Internet Corporation for Assigned Names and Numbers) is the organization responsible for assigning and administering domain names worldwide.
Domain Name Registration Services
GoDaddy
www.godaddy.com
BlueHost
www.bluehost.com
NIC.lk (Sri Lanka)
www.nic.lk
Domain Name Structure
Rules for Choosing a Good Domain Name
- Identify the organization or purpose — helps users find it via search engines (e.g., nie in www.nie.lk identifies the National Institute of Education)
- Use the appropriate top-level domain — .com for commercial, .edu for educational, .org for non-profit, .lk for Sri Lanka
- Keep it short — easier to remember and type accurately
- Avoid numbers and hyphens — they cause confusion when spoken aloud (e.g., myweb2 sounds like mywebtu)
File Transfer Protocol (FTP)
FTP software uploads your website files from your computer to the web host server, following international standards.
FileZilla
Free, open-source FTP client. Available at:
https://filezilla-project.org
SmartFTP
Professional FTP client with secure file transfers. Available at:
https://www.smartftp.com
Website Maintenance
Regular maintenance is essential for the success of a website. Three key aspects:
Regular Content Updates
Update content daily, weekly, or monthly depending on the website's nature. Change text, images, colours, and layouts. A dedicated "Latest News" column on the home page allows instant updates.
Security Protection
Protect against viruses and unauthorized access. Take regular backups. Follow proper security protocols. Dynamic websites need extra security care.
Software Updates
Keep the web design software, CMS, plugins, and server software up to date. New versions often include important security patches.
Complete Web Development Cycle
Step 7 loops back to Step 1 — websites are continuously improved!
Internet Service Providers in Sri Lanka
Sri Lanka Telecom
SLT — national provider
Lanka Bell
Fixed wireless broadband
Mobitel
Mobile internet services
Dialog Axiata
Mobile & fiber broadband
Hands-on exercises to master web design concepts and HTML coding.
Open Notepad and create a complete HTML page with:
Create a web page showing your school name in 7 different header sizes (h1–h6 + small) with different colors:
Build a complete web page about Sri Lanka with ALL of these elements:
Create a web page with nested lists combining different types:
Design this specific table using colspan and rowspan:
Create a two-page website:
As a group, plan a school website by covering all concepts from sections 5.1.1 to 5.1.6:
Visit these websites and analyze their strengths and weaknesses in design:
Create a web page that uses ALL six body tag attributes:
🧩 Problems to Solve
Problem 1 — Debug This Code
Find the errors in this HTML code:
<body>
<h1 color="red">Title</h1>
<img src="pic.jpg" width="100"></img>
<p>Hello World
<a href=www.google.com>Google<a>
</html>
Hint: There are 6 errors. Can you find them all?
Problem 1 — Answer
Errors identified:
- ✓ Missing <head> section
- ✓ <h1> color should use <font color="red">
- ✓ <img> is an empty tag — no </img> needed
- ✓ href value needs quotes: href="www.google.com"
- ✓ Closing anchor tag should be </a> not <a>
- ✓ Missing </body> tag
Problem 2 — Classify Websites
Classify each website into its correct type:
- 1. www.youtube.com → Entertainment
- 2. www.google.com → Search Engine
- 3. www.amazon.com → e-Commerce
- 4. www.facebook.com → Social Media
- 5. www.bbc.co.uk → News
- 6. www.nie.lk → Information
Problem 3 — Domain Name Analysis
What does each part of this URL mean?
- • www = World Wide Web prefix
- • president = domain name (organization)
- • .gov = government organization
- • .lk = Sri Lanka (country code)
Test your knowledge! Select the best answer for each question, then check your score.